<template>
	<list-scroll class="list-scroll" @loadMore="loadMore">
	<list-card  :item="item" v-for="(item,index) in list" :key="item._id"></list-card>
	 <uni-load-more v-if="list.length ===0 || list.length >9" iconType="snow" :status="load.loading"></uni-load-more>
	</list-scroll> 
</template>
 
<script>
	export default{
		props:{
			list:{
				type:Array,
				default:() => {
					return []
				}	
			},
			load:{
				type:Object,
				default:() => {
					return {}
				}
			}
		},
		watch:{
			list(val) {
				// console.log("cnm")
			},
			load(val) {
				// console.log('watch',val)
			}
		},
		methods:{
			loadMore(){
				this.$emit('loadMore')
			}
		}
	}
</script>

<style lang="scss">
	.list-scroll{
		height: 100%;
	}
</style>
